import $http from '../http.js'

//=====================  首页  ===================//

export const get_music_list = (data) => {
	// return $http({
	// 	url: 'get_music_list',
	// 	data: data
	// })
	return $http({
		url: 'zhumian',
		data: {
			action:'home/getHomeMusicListWithType',
			data: data
		}
	})
}

/* 获取首页的分类 */
export const requestHomeMusicTypes = (data) => {
	return $http({
		url: 'zhumian',
		data: {
			action:'home/getHomeMusicType',
			data: data
		}
	})
}


/* 获取首页的Banner */
export const requestHomeBannerList = (data) => {
	return $http({
		url: 'zhumian',
		data: {
			action:'home/getHomeBannerList',
			data: data
		}
	})
}

//=====================  电台 ===================//

export const get_sleep_type = (data) => {
	return $http({
		url: 'zhumian',
		data: {
			action:'radio/getSleepType',
			data: data
		}
	})
}

export const requestStoryListWithType = (data) => {
	return $http({
		url: 'zhumian',
		data: {
			action:'radio/getStoryListWithType',
			data: data
		}
	})
}

/* 根据类型以及页码分页 */
export const requestStoryListWithModelData = (data) => {
	return $http({
		url: 'zhumian',
		data: {
			action:'radio/getStoryListWithModelData',
			data: data
		}
	})
}

//=====================  用户中心  ===================//

export const requestAddUserFeedBack = (data) => {
	return $http({
		url: 'zhumian',
		data: {
			action:'user/addUserFeedBackInfomation',
			data: data
		}
	})
}